package com.suqiu.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.suqiu.common.utils.SmsParam;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *
 * </p>
 *
 * @author suqiu
 * @since 2021-12-14
 */
@Data
@TableName(value = "`order`")
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    //    @NotNull(message = "type不能为空")
    private Integer type;

    private Integer status;


//    private Suqiu suqiu;

    //    @NotBlank
//    @NotPhone(message = "不存在该手机号")
    @TableField(exist = false)
    private String phone;

//    @Valid
//    @NotEmpty(message = "参数不能为空")
    @TableField(exist = false)
    private List<SmsParam> list;

    Map<String, Object> map;

//    @Email
//    @TableField(exist = false)
//    private String[] emails;

    private Long itemId;

    private Integer fee;

    @TableLogic
    private Integer isDelete;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
